$(function(){
	var url = "check_ajax";

	$('#aw-login-user-name').blur(function(){

		var username = $(this).val();

		$.post(
			url,{username: username},
			function (data){
				if(data == 1){
					$('#username').append("<div style=\"height:18px;width:400px;margin-bottom:-12px;color:#BA0000;\"><img style=\"margin-bottom:4px;\" src=\"../../../Public/Main/Img/no.png\">&nbsp;&nbsp;用户名或者邮箱不正确！</div>");

				}else{
					$('#username').append("<div style=\"position:absolute;right:3px;top:4px;height:20px;width:20px;\"><img src=\"../../../Public/Main/Img/yes.png\"></div>");
				}
			}


		);


	});
	$('#username').focusin(function() {
		
		
		$(this).parent().find('div').remove();
	});






});